module AutoBase
  module Validate
    class Base
      def initialize(validatee, expectation)
        @validatee = validatee
        @expectation = expectation
      end

      private
      def validate_message(validatee, method, expectation)
        message = "validates #{validatee} #{method} #{expectation} fails"
        raise AutoBase::Validate::ValidateError, message, caller
      end
    end
  end
end